﻿
@{
    ViewBag.Title = "NewsDetail";
    Layout = "~/Views/Shared/_LayoutPortal.cshtml";
}

@section css{
    <style>
        .table td, .table th {
            border-bottom-style:dashed;
        }
    </style>
}
<div ng-controller="NewsCenterController" ng-cloak ng-init="
     page='@(Request.QueryString["page"].IsEmpty() ? "1" : Request.QueryString["page"])';
     type='@(Request.QueryString["type"].IsEmpty() ? "" : Request.QueryString["type"])';
     GetNewsTypeDetail(type);
     GetNewsList(type,page);
     ">
    <div class="page-header">
        <h4 class="page-title">{{TypeDetail.TypeName}}</h4>
        <ul class="breadcrumbs">
            <li class="nav-home">
                <a href="#">
                    <i class="flaticon-home"></i>
                </a>
            </li>
            <li class="separator">
                <i class="flaticon-right-arrow"></i>
            </li>
            <li class="nav-item">
                <a href="#">{{TypeDetail.TypeName}}</a>
            </li>

        </ul>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-body">
                    <table class="table table-hover">
                        <tbody>
                            <tr style="cursor:pointer;" ng-click="GoNewsCenter(x.Id,x.NoticeType);" ng-repeat="x in NewsList">
                                <td style="width:1%;">{{$index+1}}</td>
                                <td style="width:85%;">{{x.NoticeTitle}}</td>
                                <td style="width:14%;">{{x.PublishTime|JSONDate:"yyyy-MM-dd"}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="row" ng-show="NewsList!=null && NewsList.length>0">
        <div>
            <ul style="margin-left: 500px;" class="pagination">
                <li class="paginate_button page-item previous" id="basic-datatables_previous"><a href="#" aria-controls="basic-datatables" data-dt-idx="0" tabindex="0" ng-click="GetNewsList(type,1);" class="page-link">首页</a></li>
                <li class="page-item" ng-class="{'active':result.currentPage==page}" ng-repeat="page in result.pages"><a style="cursor:pointer;" ng-click="GetLawFormPageList(SearchModel,page)" class="page-link" ng-bind="page"></a></li>
                <li class="page-item"><a class="page-link" style="cursor:pointer;" ng-click="GetNewsList(type,(result.currentPage + 1 > result.totalPage ? result.totalPage : result.currentPage + 1))">下一页</a></li>
                <li class="paginate_button page-item next" id="basic-datatables_next"><a ng-click="GetNewsList(type,result.totalPage);" aria-controls="basic-datatables" data-dt-idx="7" tabindex="0" class="page-link">尾页</a></li>
            </ul>
        </div>
    </div>
</div>







@section Js{
    <script src="~/Bussiness/js/pg/NewsCenter.js?v=@DateTime.Now.ToString("yyMMddHHmm")"></script>
}


